package com.example.my.shop.mybatis.dao;

import com.example.my.shop.mybatis.entity.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TbUserMapper {

    List<TbUser> findAll();

    boolean addUser(TbUser tbUser);

    int updateTbUer(TbUser tbUser);

    int deleteById(@Param("id") Long id);

    List<TbUser> likeSearch(Map map);

    List<TbUser> likeSearchColumn(TbUser tbUser);

    TbUser selectEmailAndPassWord(@Param("email") String email);

    TbUser findById(@Param("id")Long id);

    int batchDelete(String[] ids);
}
